<template>
	<view class="container">
		<!-- 顶部导航 -->
		<view class="header">
			<view class="back-btn" @click="goBack">
				<text class="back-icon">←</text>
			</view>
			<text class="page-title">梦境报告</text>
		</view>
		
		<!-- 报告卡片 -->
		<view class="report-card">
			<view class="report-header">
				<text class="report-title">本月梦境分析报告</text>
				<text class="report-date">2024年3月</text>
			</view>
			
			<!-- 梦境类型分布 -->
			<view class="chart-section">
				<text class="section-title">梦境类型分布</text>
				<view class="chart-placeholder">
					<text class="placeholder-text">图表区域</text>
				</view>
			</view>
			
			<!-- 情感倾向分析 -->
			<view class="analysis-section">
				<text class="section-title">情感倾向分析</text>
				<view class="emotion-stats">
					<view class="emotion-item">
						<text class="emotion-label">积极</text>
						<text class="emotion-value">60%</text>
						<view class="progress-bar">
							<view class="progress" style="width: 60%;"></view>
						</view>
					</view>
					<view class="emotion-item">
						<text class="emotion-label">中性</text>
						<text class="emotion-value">25%</text>
						<view class="progress-bar">
							<view class="progress" style="width: 25%;"></view>
						</view>
					</view>
					<view class="emotion-item">
						<text class="emotion-label">消极</text>
						<text class="emotion-value">15%</text>
						<view class="progress-bar">
							<view class="progress" style="width: 15%;"></view>
						</view>
					</view>
				</view>
			</view>
			
			<!-- 关键词云 -->
			<view class="keywords-section">
				<text class="section-title">热门关键词</text>
				<view class="keywords-cloud">
					<text class="keyword-item size-l">家人</text>
					<text class="keyword-item size-m">旅行</text>
					<text class="keyword-item size-s">工作</text>
					<text class="keyword-item size-l">飞翔</text>
					<text class="keyword-item size-m">考试</text>
					<text class="keyword-item size-s">动物</text>
				</view>
			</view>
			
			<!-- 建议 -->
			<view class="suggestion-section">
				<text class="section-title">AI解梦建议</text>
				<text class="suggestion-text">根据本月的梦境分析，您的潜意识显示出对未来的积极期待。建议在工作中保持这种良好的心态，同时也要注意适当放松，保持作息规律。</text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			
		}
	},
	methods: {
		goBack() {
			uni.navigateBack()
		}
	}
}
</script>

<style>
.container {
	min-height: 100vh;
	background: #f5f5f5;
	padding-bottom: 40rpx;
}

.header {
	position: relative;
	padding: 40rpx 30rpx;
	background: #4080ff;
	display: flex;
	align-items: center;
	border-radius: 0 0 40rpx 40rpx;
}

.back-btn {
	position: absolute;
	left: 30rpx;
}

.back-icon {
	font-size: 40rpx;
	color: #fff;
}

.page-title {
	flex: 1;
	text-align: center;
	font-size: 36rpx;
	color: #fff;
	font-weight: bold;
}

.report-card {
	margin: 30rpx;
	background: #fff;
	border-radius: 20rpx;
	padding: 30rpx;
	box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.1);
}

.report-header {
	margin-bottom: 40rpx;
}

.report-title {
	font-size: 32rpx;
	color: #333;
	font-weight: bold;
	display: block;
	margin-bottom: 10rpx;
}

.report-date {
	font-size: 24rpx;
	color: #999;
}

.section-title {
	font-size: 28rpx;
	color: #333;
	font-weight: 500;
	margin-bottom: 20rpx;
	display: block;
}

.chart-placeholder {
	height: 300rpx;
	background: #f8f8f8;
	border-radius: 10rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40rpx;
}

.placeholder-text {
	font-size: 28rpx;
	color: #999;
}

.emotion-stats {
	margin-bottom: 40rpx;
}

.emotion-item {
	margin-bottom: 20rpx;
}

.emotion-label {
	font-size: 24rpx;
	color: #666;
	margin-bottom: 10rpx;
	display: inline-block;
}

.emotion-value {
	float: right;
	font-size: 24rpx;
	color: #999;
}

.progress-bar {
	height: 10rpx;
	background: #f0f0f0;
	border-radius: 5rpx;
	overflow: hidden;
}

.progress {
	height: 100%;
	background: #4080ff;
	border-radius: 5rpx;
}

.keywords-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 20rpx;
	margin-bottom: 40rpx;
}

.keyword-item {
	padding: 10rpx 20rpx;
	background: #f0f6ff;
	color: #4080ff;
	border-radius: 30rpx;
}

.size-s {
	font-size: 24rpx;
}

.size-m {
	font-size: 28rpx;
}

.size-l {
	font-size: 32rpx;
}

.suggestion-text {
	font-size: 26rpx;
	color: #666;
	line-height: 1.6;
}
</style> 